require('../../assets/css/index.less')
require('../../assets/fonts/iconfont.css')
require('../../lib/weui/weui.css');
require("./training.less")
let weui = require('../../lib/weui/weui.js');

const dom = require('../../utils/dom');
const https = require('../../utils/https');
const local = require('../../utils/local');
dom.ready(function() {
    dom.bMenu('sport')


    let a = location.search.slice(1);
    console.log(a);
    https.get(`/api/train/courseDetail?${a}`, function(res) {
        console.log(res);
        local.set("fragments", res.data.fragments)
    })
    dom.addevent("button", function() {
        location.href = "introduce.html"
    })


})